/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfc.mapper;

import com.easy.core.persistence.BaseMapper;
import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfc.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * MAPPER接口
 * @author waylen chi
 * @version 2017-12-05
 */
@MyBatisMapper
public interface DfcEnrollMapper extends BaseMapper<DfcActivity> {

    List<Map<String,Object>> ActivityList(ParaActivity para);

    DfcActivity getIdByUuId(@Param(value = "uuId") String uuId);

    DfcActivity getByUuId(@Param(value = "uuId") String uuId);

    List<Map<String,Object>> ActivityEnrollList(ParaEnrollQuery para);

    List<Map<String,Object>> ActivityEnrollProduct(@Param(value = "enrollId") String enrollId);

    void ActivityEnrollCancel(@Param(value = "enrollId") String enrollId);

    Map<String,Object> ActivityEnrollDetail(@Param(value = "enrollId") String enrollId);


    void insertEnroll(DfcEnroll enroll);

    void insertEnrollProduct(DfcEnrollProduct product);

    void updateTradeNo(@Param(value = "enrollId") String enrollId,@Param(value = "tradeNo")  String tradeNo);

    void updateSucessStatus(@Param(value = "id") String id);

    DfcEnroll findByTradeNo(@Param(value = "tradeNo")String tradeNo);

    List<DfcLive> getLiveList(@Param(value = "enrollId")String enrollId);

    List<Map<String,Object>> ActivityEnrollList1(ParaEnrollQuery para);

    void saveLog(@Param(value = "alipay")String alipay);
}